package live.zs.apollo.apolloclientexample.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author madison
 * @description
 * @date 2022/4/30 15:53
 */
@RestController
public class ApolloController {

    @Value("${name:madison}")
    private String name;
    @Value("${age:18}")
    private String age;

    @Value("${age1:19}")
    private String age1;

    @Value("${test1:19}")
    private String test1;

    @GetMapping
    public String get() {
        return "name:" + name + ",age:" + age + ",age1:" + age1 + ",test1:" + test1;
    }
}
